package com.sailors.common.task.provider.faced.model.enums;


import com.sailors.common.task.provider.infra.design.common.enums.BussinessBaseEnum;
import lombok.AllArgsConstructor;

/**
 * Task type enum
 *
 * @description: 任务延时级别枚举
 * @author: cyj
 * @date 2022 -11-22 15:29:02
 */
@AllArgsConstructor
public enum TaskDelayedLevelEnum implements BussinessBaseEnum {
    NONE(0, "不延时检验", 0L),
    MIN_5(1, "5分钟", 5 * 60 * 1000L),
    MIN_10(2, "10分钟", 10 * 60 * 1000L),
    MIN_30(3, "30分钟", 30 * 60 * 1000L),
    MIN_60(4, "60分钟", 60 * 60 * 1000L),
    MIN_90(5, "90分钟", 90 * 60 * 1000L),
    MIN_210(6, "120分钟", 120 * 60 * 1000L),
    ;

    private Integer code;

    private String desc;

    /**
     * 单位ms
     */
    public Long delayTime;

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getDesc() {
        return desc;
    }

}
